Optimal. Leaf size=50 \[ \frac{3 a^3 \cos (c+d x)}{d}+\frac{2 a^5 \cos ^3(c+d x)}{d (a-a \sin (c+d x))^2}-3 a^3 x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.136254, antiderivative size = 50, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {2670, 2680, 2682, 8} \[ \frac{3 a^3 \cos (c+d x)}{d}+\frac{2 a^5 \cos ^3(c+d x)}{d (a-a \sin (c+d x))^2}-3 a^3 x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2670
Rule 2680
Rule 2682
Rule 8
Rubi steps
\begin{align*} \int \sec ^2(c+d x) (a+a \sin (c+d x))^3 \, dx &=a^6 \int \frac{\cos ^4(c+d x)}{(a-a \sin (c+d x))^3} \, dx\\ &=\frac{2 a^5 \cos ^3(c+d x)}{d (a-a \sin (c+d x))^2}-\left (3 a^4\right ) \int \frac{\cos ^2(c+d x)}{a-a \sin (c+d x)} \, dx\\ &=\frac{3 a^3 \cos (c+d x)}{d}+\frac{2 a^5 \cos ^3(c+d x)}{d (a-a \sin (c+d x))^2}-\left (3 a^3\right ) \int 1 \, dx\\ &=-3 a^3 x+\frac{3 a^3 \cos (c+d x)}{d}+\frac{2 a^5 \cos ^3(c+d x)}{d (a-a \sin (c+d x))^2}\\ \end{align*}
Mathematica [C] time = 0.0333694, size = 55, normalized size = 1.1 \[ \frac{4 \sqrt{2} a^3 \sqrt{\sin (c+d x)+1} \sec (c+d x) \, _2F_1\left (-\frac{3}{2},-\frac{1}{2};\frac{1}{2};\frac{1}{2} (1-\sin (c+d x))\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.05, size = 87, normalized size = 1.7 \begin{align*}{\frac{1}{d} \left ({a}^{3} \left ({\frac{ \left ( \sin \left ( dx+c \right ) \right ) ^{4}}{\cos \left ( dx+c \right ) }}+ \left ( 2+ \left ( \sin \left ( dx+c \right ) \right ) ^{2} \right ) \cos \left ( dx+c \right ) \right ) +3\,{a}^{3} \left ( \tan \left ( dx+c \right ) -dx-c \right ) +3\,{\frac{{a}^{3}}{\cos \left ( dx+c \right ) }}+{a}^{3}\tan \left ( dx+c \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.44948, size = 92, normalized size = 1.84 \begin{align*} -\frac{3 \,{\left (d x + c - \tan \left (d x + c\right )\right )} a^{3} - a^{3}{\left (\frac{1}{\cos \left (d x + c\right )} + \cos \left (d x + c\right )\right )} - a^{3} \tan \left (d x + c\right ) - \frac{3 \, a^{3}}{\cos \left (d x + c\right )}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.62659, size = 230, normalized size = 4.6 \begin{align*} -\frac{3 \, a^{3} d x - a^{3} \cos \left (d x + c\right )^{2} - 4 \, a^{3} +{\left (3 \, a^{3} d x - 5 \, a^{3}\right )} \cos \left (d x + c\right ) -{\left (3 \, a^{3} d x - a^{3} \cos \left (d x + c\right ) + 4 \, a^{3}\right )} \sin \left (d x + c\right )}{d \cos \left (d x + c\right ) - d \sin \left (d x + c\right ) + d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16698, size = 123, normalized size = 2.46 \begin{align*} -\frac{3 \,{\left (d x + c\right )} a^{3} + \frac{2 \,{\left (4 \, a^{3} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - a^{3} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 5 \, a^{3}\right )}}{\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} - \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]